KERNEL_DIR = /lib/modules/$(shell uname -r)/build
PROJECT_DIR = $(shell pwd)

OBJ_FILES = MOD_main.o NDA_driver.o HBA_driver.o

obj-m := trusted_path.o
trusted_path-objs := $(OBJ_FILES)
ccflags-y += -I$(PROJECT_DIR)

all:
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) modules
clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(PROJECT_DIR) clean
